<?php
require_once 'config.php';
header('content-type:text/html;charset=utf8');
$nv = new NhanVien();

$page = new Template(TEMPLATE_DIR. 'nhanvien.html');

foreach ($nv->select() as $row){
    $khitem = new Template(TEMPLATE_DIR.'nhanvien-item.html');

    $khitem->setArray($row);

    $page['data'] .= $khitem->render();
}

echo $page->render();
